package cn.xyafu.service.impl;

import cn.xyafu.dao.TypeDao;
import cn.xyafu.po.Type;
import cn.xyafu.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class TypeServiceImpl implements TypeService {
    @Autowired
    private TypeDao typeDao;
    //查询所有类型
    @Override
    public List<Type> findAllType() {
        return this.typeDao.findAllType();
    }
}
